package javabasic.threads.CreateThreadMethods;

public class ExendsMethod {
    public static void main(String[] args) {
        Thread myThread = new MyThread();
        myThread.start();
        for (int i = 0; i < 2000; i++) {
            System.out.println("主线程执行："+i);
        }
    }
}

class MyThread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 2000; i++) {
            System.out.println("子线程执行："+i);
        }
    }
}
